package com.qf.spring.aop.service.impl;

import com.qf.spring.aop.entity.User;
import com.qf.spring.aop.service.UserService;

public class UserServiceImpl implements UserService {
    @Override
    public int add(User user) {
        System.out.println("添加用户成功!");
        return 1;
    }

    @Override
    public int update(User user) {
        System.out.println("更新用户成功!");
        return 1;
    }

    @Override
    public int delete(Integer id) {
        System.out.println("删除用户成功!");
        return 1;
    }

    @Override
    public User selectById(Integer id) {
        System.out.println("添加用户成功!");
        User user = new User();
        user.setId(1);
        user.setName("董晨旭");
        return user;
    }
}
